/*
 * @Description: 地址模型
 * @Author: zhhuan
 * @LastEditTime: 2024-03-27 17:04:40
 */

const mongoose = require("../db/db")

const Schema = mongoose.Schema(
  {
    username: {
      type: String,
      require: true //必需
    }, //就和用户产生关联
    city: String,
    department: String,
    houseNumber: String,
    name: String,
    phone: String
  },
  { timestamps: true }
)
const Address = mongoose.model("address", Schema)

module.exports = Address
